﻿<%@ Page Title="" Language="C#" MasterPageFile="~/followerpart/followermaster.master" AutoEventWireup="true" CodeFile="InternalReceipts.aspx.cs" Inherits="InternalReceipts" meta:resourcekey="PageResource1"%>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>إصدار الفواتير</title>
    <style type="text/css">
    tr .tabbone4{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:right;
	
}
.adel4{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  right;
}
         .zr3 {
	background-image:url('../images/button2.png');
	display:block;
	float:right;
	 padding: 0px 10px 0px 10px;
	height:21px;
	text-align:center;
	color:#fff;
	text-shadow:1px 1px 0px #003a5e;
	margin-right:2px;
	line-height:19px;
	font-weight:bold;
	text-decoration:none;
	font-family:Tahoma;
	font-size:12px;


}
.zr3:hover ,.zr3:active {
	background-image:url('../images/button2.png');
	text-shadow:1px 1px 0px #003a5e;
	background-position:0px -21px;
	
}
  .stylelabel3
       {
       	color:#064c66;
	 font-weight:bold;
	 direction:rtl;
	 text-align:right;
       	}
             .tab3{
	width:815px;
 direction:rtl;
 border:1px #ccc solid;
 border-radius:5px;
 }

tr .tabbone3{
	 background-color:#028ac5;
	 font-size:11px;
	 line-height:20px;
	 font-family:Tahoma;
  	 color:#fff;
  	 text-align:center;
	
}
 .req3
       {
           color:Red;
       } 
.adel3{
	background-color:#ededed;
	font-size:10px;
	color:#084f86;
	font-family:Tahoma;
	height:30px;
	text-align:  center;
}
.he3{
	background-color:#fff;
	padding:5px;
	font-family:Tahoma;
	font-size:14px;
	font-weight:bold;
}
.txt3
{
    border:1px solid black;
    }
        .jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 800px;
    
    background-color: #EEE;
    color: #333;
    border: 1px solid black;
    padding: 12px;
}

        .lok
     {
	display: none;
	color: red;
     }
       
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">



   
   
 <br />
<div id="details" runat="server" >
     <table class="tab3">
<tr>
<td class="he3" colspan="3"> <asp:Label   ID="filter" runat="server" 
                     Text="فلترة" meta:resourceKey="filter" /></td>
</tr>
<tr >
<td class="tabbone3">
    <asp:Label   ID="Label6" runat="server" Text="اسم الدورية" meta:resourceKey="lblPeriodicalname" />
</td>
<td class="tabbone3">
    <asp:Label   ID="lblsatrtsub" runat="server" Text="من" meta:resourceKey="lblsatrtsub" />
</td>
<td class="tabbone3">
    <asp:Label   ID="lblendsub" runat="server" Text="الى" meta:resourceKey="lblendsub" />
</td>
<td class="tabbone3"> 
    <asp:Label   ID="Label2" runat="server" Text="تم الاستلام" meta:resourceKey="receive" />
</td>
</tr>
<tr>
<td class="adel3">
<asp:CheckBoxList  RepeatLayout="Table"   ID="CheckBoxList1" Width="200px"  runat="server" 
            DataSourceID="SqlDataSource2" DataTextField="product" DataValueField="mysub">
        </asp:CheckBoxList>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="select p.product ,t.id as mysub from  products p  INNER JOIN company_product t ON (t.product_id = p.id)   WHERE t.id in(select company_product_id from internal_copies where internal_id=@int_id )">
        <SelectParameters>
      <asp:QueryStringParameter Name="int_id" QueryStringField="internal" />
        </SelectParameters>
    </asp:SqlDataSource>
</td>
<td class="adel3">
        <eo:datepicker ID="DatePicker1" runat="server" DayHeaderFormat="Full" 
               DayCellHeight="16" DisabledDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
                                    OtherMonthDayVisible="True" DayCellWidth="19" TitleRightArrowImageUrl="DefaultSubMenuIcon"
                                    ControlSkinID="None" SelectedDates="">
                                    <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid">
                                    </DayHoverStyle>
                                    <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;">
                                    </TitleStyle>
                                    <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid">
                                    </DayHeaderStyle>
                                    <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid">
                                    </DayStyle>
                                    <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid">
                                    </SelectedDayStyle>
                                    <TitleArrowStyle CssText="cursor:hand"></TitleArrowStyle>
                                    <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid">
                                    </TodayStyle>
                                    <PickerStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;">
                                    </PickerStyle>
                                    <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid">
                                    </OtherMonthDayStyle>
                                    <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma">
                                    </CalendarStyle>
                                    <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid">
                                    </DisabledDayStyle>
                                    <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px">
                                    </MonthStyle>
                                </eo:datepicker>
</td>
<td class="adel3">
    <eo:DatePicker ID="DatePicker2" runat="server" ControlSkinID="None" 
        DayCellHeight="16" DayCellWidth="19" DayHeaderFormat="Full" DisabledDates="" 
        OtherMonthDayVisible="True" SelectedDates="" 
        TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" 
        TitleRightArrowImageUrl="DefaultSubMenuIcon">
        <DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" />
        <TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" />
        <DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" />
        <DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
        <SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
        <TitleArrowStyle CssText="cursor:hand" />
        <TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" />
        <PickerStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
        <OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
        <CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" />
        <DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
        <MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" />
    </eo:DatePicker>
</td>
<td class="adel3">
      <asp:RadioButtonList ID="RadioButtonList1" runat="server" TextAlign="right"   >
                  
                    <asp:ListItem  style="float:right" Text="تم الاستلام" Value="1" meta:resourceKey="receive"></asp:ListItem>
                    <asp:ListItem style="float:right" Text="لم يتم الاستلام" Value="0" meta:resourceKey="noreceive" ></asp:ListItem>
                </asp:RadioButtonList>
</td>
</tr>
</table>
<table>
<tr>
<td>
           <asp:Button  ID="save"  CssClass="zr3" runat="server" Text="اضغط" 
               meta:resourceKey="press" onclick="save_Click" />
    </td>
</tr>
</table>

 
    
    
    
          <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                    DataSourceID="SqlDataSource1" 
                     OnRowCreated="GridView1_RowCreated"
                    AllowPaging="True" onrowdatabound="GridView1_RowDataBound" 
         EnableModelValidation="True" GridLines="None"  >
                    <PagerSettings FirstPageText="الاولى" LastPageText="الاخيرة"
                        NextPageText="التالى" PreviousPageText="السابق" />
                    
                    <Columns>
                    
                        <asp:TemplateField>
                            <HeaderTemplate>
                              
                                    <table class="tab3">
                                        <tr class="tabbone3">
                                         
                                            <td style="width:150px">
                                                <asp:Label ID="checked" runat="server" Text="تاريخ المراجعة " meta:resourceKey="checked"
                                                    />
                                            </td>
                                             
                                            <td style="width:150px">
                                                <asp:Label ID="lblpadfees" runat="server" Text="ميعاد الاستلام " meta:resourceKey="lblsupposeddate"
                                                     />
                                            </td>
                                            
                                           
                                            <td style="width:150px">
                                                <asp:Label ID="lblissn" runat="server" Text="عدد النسخ " meta:resourceKey="lblcopyno"
                                                    />
                                            </td>
                                             <td style="width:150px">
                                                   <asp:Label ID="label" runat="server" Text="قيمة النسخة" meta:resourceKey="lblpaidfees"
                                                     />
                                            </td>
                                           <td style="width:150px">
                                                <asp:Label ID="Label1" runat="server" Text="المستخدم" meta:resourceKey="pro"
                                                     />
                                            </td>
                                        </tr>
                                    </table>
                              
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table class="tab3">
                                    <tr class="adel3">
                                    
                                    <td style="width:150px">
                                     
                                       
                                    
                                            <asp:Label  ID="Label5" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("datechecked"))) %>'
                                                />
                                        </td>
                                       
                                        <td style="width:150px">
                                            <asp:Label  ID="issuedate" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("receiveddate"))) %>'
                                                 />
                                        </td>
                                        
                                        <td style="width:150px">
                                            <asp:Label  ID="price" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("actualcopyno"))) %>'
                                                 />
                                        </td>
                                        <td style="width:150px">
                                            <asp:Label  ID="no" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("assumedcopyno"))) %>'
                                                 />
                                        </td>
                                       <td style="width:150px">
                                            <asp:Label  ID="Label4" runat="server" Text='<%# HttpUtility.HtmlEncode(Convert.ToString(Eval("product"))) %>'
                                                 />
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                            <footertemplate>
                            
                 
                    </footertemplate>
                        </asp:TemplateField>
                        
                   
                    </Columns>
                </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="select i.*,p.product from internal_checking i INNER JOIN company_product t ON (i.company_product_id = t.id) INNER JOIN products p  ON (t.product_id = p.id) where i.internal_id=@int_id" SelectCommandType="Text">
        <SelectParameters>
            
             <asp:QueryStringParameter Name="int_id" QueryStringField="internal" />
       
        </SelectParameters>
       
    </asp:SqlDataSource>
    <%-- <SelectParameters>
            <asp:Parameter Name="mysub" />
               <asp:Parameter Name="int" />
        </SelectParameters>--%>
    <div>
    <%--<table>
                            <tr>
                            <td><asp:Label ID="resum" runat="server"/></td>
                            <td><asp:Label ID="notresum" runat="server"/></td>
                            <td><asp:Label ID="alls" runat="server"/></td></tr>
                            </table>--%>
    <table  dir="rtl" align="center">
     
     <tr>
   
   
   <td style="width:120px;padding:5px;"> <asp:Label CssClass="stylelabel3"  ID="Label3" runat="server" Text="ماتم استلامة" meta:resourceKey="arrive" /></td>
    <td  style="padding:5px;"> <asp:Label CssClass="stylelabel3"  ID="arrive" runat="server" Text=""  /></td>
   <%-- <td> <asp:Label CssClass="Lablcss"  ID="Label9" runat="server" Text="ثمن ماتم استلامه " meta:resourceKey="arriveprice" /></td>
  
    <td> <asp:Label CssClass="Lablcss"  ID="arriveprice" runat="server" Text=""  /></td>--%>
</tr><tr>
<td style="padding:5px;"> <asp:Label CssClass="stylelabel3"  ID="Label7" runat="server" Text="مالم يتم استلامة" meta:resourceKey="noarrive" /></td>

<td style="padding:5px;"> <asp:Label CssClass="stylelabel3"  ID="noarrive" runat="server" Text=""  /></td>
</tr><tr>
<td style="padding:5px;"> <asp:Label CssClass="stylelabel3"  ID="Label1" runat="server" Text="مالم يتم استلامة" meta:resourceKey="alls" /></td>

  <td style="padding:5px;"><asp:Label ID="all" runat="server" Font-Bold="True"/></td></tr>
<%--<td> <asp:Label CssClass="Lablcss"  ID="Label11" runat="server" Text="ثمن ما لم يتم استلامة" meta:resourceKey="noarriveprice" /></td>
    <td> <asp:Label CssClass="Lablcss"  ID="noarriveprice" runat="server" Text=""  /></td>--%>
    <%--</tr>--%>
    </table>
    </div>
    <div align="center">
     <table  class="tables" dir="rtl">
     
     <tr>
   
   
  <%-- <td> <asp:HyperLink ID="ints" CssClass="zr3" runat="server" Text="" meta:resourceKey="intcheck"  NavigateUrl='<%# this.ResolveUrl("~/companypart/" + string.Format("EditInternal.aspx?uid={0}", ViewState["myid"].ToString())) %>' /></td>--%>
    <td>
    
        <asp:Button ID="pressed" CssClass="zr3" runat="server" Text="انشىء تقرير" meta:resourcekey="Createreport"
            onclick="LinkButton1_Click" />
            </td>
    </tr>
    </table>
    </div>
    
    </div>
   <%-- </ContentTemplate>
 <Triggers>
 <asp:PostBackTrigger ControlID="save" />
 <asp:AsyncPostBackTrigger ControlID="currentsubs" EventName="SelectedIndexChanged" />
 
 </Triggers>
    </asp:UpdatePanel>--%>
</asp:Content>

